﻿
using System;
using System.Collections.Generic;
using System.Text;

using YouHP.Utility;
using YouHP.BLL;
using YouHP.Model;
using YouHP.Atom;
using YouHP.Logic;
namespace YouHP.Pages.XiaoChuanHistory
{
    public class HistoryEdit : YouHP.Pages.PatientBasePage
    {
        protected string sIndicator;
        protected string sDate;
        protected XiaoChuanInfo oXiaoChuanInfo; 
        protected override void ShowPage()
        {
            base.ShowPage();
            if (ErrorCount > 0) return;

            HandleCommon();
            if (ErrorCount > 0) return;

            if (IsPost) HandlePost();
            else HandleGet();
        }

        protected string Stature = "";
        protected new void HandleCommon()
        {
        }

        protected new void HandlePost()
        {
            
        }

        protected new void HandleGet()
        {
            //取得这个用户的信息
            int iId = RequestTools.GetInt("id", 0); 
            XiaoChuanLogic xiaoChuanLogic = new XiaoChuanLogic();
            oXiaoChuanInfo = xiaoChuanLogic.GetHistory(iId, PrData.Id);
            if (oXiaoChuanInfo == null || oXiaoChuanInfo.Id < 1)
            {
                this.AddErrLine("错误的参数");
                return;
            }
            else
            {
                sIndicator = oXiaoChuanInfo.Indicator;
                sDate = oXiaoChuanInfo.RecordDate.ToString("yyyy-MM-dd"); 
            }
            
        }
    }
}